package com.boot.springboot.component.qlexpress.enums;

import java.util.HashMap;
import java.util.Map;

public enum LogNameEnum {
   WIFI("wifi", "wifi"), ROUTERDEVICE("routerDevice", "routerDevice"), VOLUMECHANGE("autoNightVol", "volumeChange"), BLUETOOTHDEVICE("blue", "blue");
   String desc;
   String name;

   private static Map<String, String> KEYS_MAP_SS = new HashMap<>();

   LogNameEnum(String name, String desc) {
      this.desc = desc;
      this.name = name;
   }

   public static Map<String, String> getKeysMapSS() {
      return KEYS_MAP_SS;
   }

   //初始化枚举类资源类型数据返回，
   static {
      for (LogNameEnum item : LogNameEnum.values()) {
         KEYS_MAP_SS.put(item.name, item.desc);
      }
   }

   public String getDesc() {
      return desc;
   }

   public String getName() {
      return name;
   }
}
